package com.yuxi.Dao;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.yuxi.Entity.ModifyInformationRecord;
/**
 *用户修改记录操作接口
 * @author hunter
 * @version 1.0
 * 2016/07/18
 */
@Repository
public interface ModifyInformationRecordDao {
	/**
	 * 通过mIRecordID获取ModifyInformationRecord
	 * @param 	mIRecordId
	 * @return ModifyInformationRecord 
	 * */
	public ModifyInformationRecord getIRecord(Integer mIRecordId);
	/**
	 * 添加一个mIRecord  并返回添加的实体类
	 * @param 	mIRecordId
	 * @return ModifyInformationRecord 
	 * */
	public ModifyInformationRecord addIRecord(ModifyInformationRecord mIRecord);
	/**
	 * 删除一个mIRecord  并返回删除的实体类
	 * @param 	mIRecord ModifyInformationRecord实体类
	 * @return ModifyInformationRecord 
	 * */
	public void deleteIRecord(ModifyInformationRecord mIRecord);
	/**
	 * 修改一个mIRecord  并返回修改的实体类
	 * @param  mIRecord  ModifyInformationRecord实体类
	 * @return ModifyInformationRecord 
	 * */
	public void modifly(ModifyInformationRecord mIRecord);
	/**
	 * 通过记录id和信息id获取详细的修改记录
	 * @param recordId
	 * @param infoId
	 * @return
	 */
	public ModifyInformationRecord getModifyRecordByInfoIdAndRecoredId(Integer recordId,Integer infoId);
	public List<ModifyInformationRecord> getAllModifyRecordByInfoId(Integer infoId);
}
